﻿using System.Collections.Generic;

namespace NlpTrainApp.Bll.Model
{
    /// <summary>
    /// Doccano格式的标注学习数据(实体、关系)
    /// </summary>
    public class DoccanoTrainDataModel
    {
        /// <summary>
        /// 
        /// </summary>
        public List<EntitiesItem> Entities { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<RelationsItem> Relations { get; set; } = new List<RelationsItem>();

        /// <summary>
        /// 
        /// </summary>
        public string Text { get; set; }
    }

    public class EntitiesItem
    {
        /// <summary>
        /// 
        /// </summary>
        public int End_offset { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 被告
        /// </summary>
        public string Label { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int Start_offset { get; set; }
    }

    public class RelationsItem
    {
        /// <summary>
        /// 
        /// </summary>
        public int From_id { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int To_id { get; set; }
        /// <summary>
        /// 伤害
        /// </summary>
        public string Type { get; set; }
    }

    /// <summary>
    /// Doccano格式的标注学习数据(分类)
    /// </summary>
    public class DoccanoClsTrainDataModel
    {
        /// <summary>
        /// 
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 经依法侦查查明：2017年5月份，犯罪嫌
        /// </summary>
        public string Text { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> Label { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> Comments { get; set; } = new List<string>();
    }
}
